<?php
namespace common\models\user;

use common\models\Common;
/**
 * This is the model class for table "goods".
 *
 * @property int $id
 * @property string $name
 */
class UserBusiness extends Common
{
    public $endDate = '';

    public static function tableName()
    {
        return '{{%user_business}}';
    }

    //获取用户
    public function getUser() {
        return $this->hasOne(User::className(), ['id' => 'user_id']);
    }

}
